package IO;

import java.io.File;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        File file=new File("./text2.txt");
       boolean ok=  file.createNewFile();
        System.out.println(ok);
        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());

//        System.out.println(file.getParent());
//        System.out.println(file.getName());
//        System.out.println(file.getPath());
//        System.out.println(file.getAbsoluteFile());
//        System.out.println(file.getCanonicalPath());
    }
}
